package com.pro.common.service.file.fallback;

import com.pro.common.api.R;
import com.pro.common.api.user.file.intf.UserFileNodeFeignClient;
import com.pro.common.api.user.file.model.db.UserFileNode;
import com.pro.common.api.user.file.model.request.UserFileBatchImportRequest;
import com.pro.common.service.file.service.unit.UserFileCreateService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("")
@AllArgsConstructor
public class UserFileNodeFeignFallback implements UserFileNodeFeignClient {
    private UserFileCreateService userFileCreateService;

    @Override
    public List<R<UserFileNode>> batchUpload(UserFileBatchImportRequest request) {
       return userFileCreateService.batchUpload(request);
    }
}
